﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_MailExtGetAvailabelSet]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_MailExtGetAvailabelSet];
GO
CREATE PROCEDURE [dbo].[sproc_MailExtGetAvailabelSet]
    (
     @Username            [nvarchar](50)

)
AS 
  
SELECT Title,OrderID  FROM  TabExtMailSetting WHERE Username=@Username and Title!='' and PopServer!=''